<table>
<?php foreach($aBonplan as $ads): ?>
<tr>
    <td>
        <a href="<?php echo url_for('@adsDetail?subcat='.Doctrine_Inflector::urlize($ads->SubCategory->title) . '&slug='.$ads->slug) ?>" title="<?php echo sfOutputEscaper::unescape($ads->title) ?>">
        <?php 
	if( $ads->image_path1 != ''):
            echo image_tag('/uploads/image_path1/' . $ads->image_path1, array("class"=>"img_ads_thumb", "width"=>"100", "height"=>"100"));
	else:
            echo image_tag('no_image.jpg', array("class"=>"img_ads_thumb", "width"=>"100", "height"=>"100"));
	endif; 
        ?>
        </a>
    </td>
    <td>
        <a href="<?php echo url_for('@adsDetail?subcat='.Doctrine_Inflector::urlize($ads->SubCategory->title) . '&slug='.$ads->slug) ?>" title="<?php echo sfOutputEscaper::unescape($ads->title) ?>">
            <strong><?php echo sfOutputEscaper::unescape($ads->title); ?></strong>
        </a>
        
        <div class="red">
            <strong>
            <?php //echo $ads->price . "&nbsp;" . sfConfig::get('app_currency')?>
            <?php echo str_replace(',00', '', format_currency($ads->price, sfConfig::get('app_currency'), 'fr_FR') ); ?>
            </strong>
        </div>
        <?php echo $ads->getDateTimeObject('created_at')->format('d M Y H:m')?><br/>
    </td>
</tr>
<?php endforeach;?>
<tr><td class="seeAll" colspan="2"><?php echo link_to( __(">> Voir tous"), "@bonPlanAds", array('title' => __('Voir tous les bons plans')) ) ?></td></tr>
</table>